package com.publishproject

import android.content.Context
import android.graphics.Color
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.ContextMenu
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ListView
import android.widget.TextView
import com.android_base.core.fragments.XRCommonListFragment
import com.android_base.core.interfaces.BindRefreshListener
import com.android_base.core.views.CountDownButton
import com.android_base.core.views.bindingViews.BindingRecycleView
import com.android_base.core.views.bindingViews.adpters.XBaseRecycleAdapter
import me.yokeyword.fragmentation.SupportActivity
import pushlish.tang.com.commonutils.ToastUtils
import java.util.*


class MainActivity : SupportActivity(), View.OnClickListener {


    private var bindRecycle: BindingRecycleView? = null
    lateinit var button: CountDownButton


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        button = findViewById(R.id.button) as CountDownButton
        button.setmStartListener {
            ToastUtils.showMessage(this@MainActivity, "计时开始")
        }
    }

    override fun onClick(v: View?) {

    }

    private fun loadData(): List<String> {
        var list: ArrayList<String> = ArrayList<String>()
        for (index in 0..20) {
            list.add("随机数:" + Random().nextInt(10000))
        }
        return list
    }


}
